package com.ztgf.order.models.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * author: chenyu.wang
 * date: 2020-07-09 14:49
 * Description: 后台管理系统交易合同列表VO
 */
@Data
public class OrderBusinessContractVO implements Serializable {

    @ApiModelProperty(value = "订单合同关系表id")
    private Long id;
    @ApiModelProperty(value = "签订日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "订单id")
    private Long orderId;
    @ApiModelProperty(value = "合同地址")
    private String fileUrl;
    @ApiModelProperty(value = "合同模板名称")
    private String templetName;
    @ApiModelProperty(value = "合同模板id")
    private Long templetId;
    @ApiModelProperty(value = "契约锁合同id")
    private String contractId;
    @ApiModelProperty(value = "买家店铺id")
    private Long buyerShopId;
    @ApiModelProperty(value = "卖家店铺id")
    private Long sellerShopId;
    @ApiModelProperty(value = "买家店铺名称")
    private String buyerShopName;
    @ApiModelProperty(value = "卖家店铺名称")
    private String sellerShopName;
    @ApiModelProperty(value = "订单编号")
    private String orderNo;
    @ApiModelProperty(value = "签订日期")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")//gosn
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//输入字符串
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")//fastjson
    private Date signTime;
}
